package com.dalao.root.custom.mapper;

import com.dalao.root.custom.entity.CusField;
import com.dalao.root.custom.entity.CusWhere;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface DataMapper {
    public Integer insertData(@Param("table") String table, @Param("data") Map<String,String> data);
    public void deleteData(@Param("table") String table, @Param("where") List<Map<String,String>> where);
    public void updateData(@Param("table") String table, @Param("data") Map<String,String> data,  @Param("where") List<Map<String,String>> where);
    public Object selectData(@Param("table") String table, @Param("field") List<CusField> field, @Param("where") List<Map<String,String>> where);
    public List<Object> selectDataList(@Param("table") String table, @Param("field") List<CusField> field, @Param("where") List<Map<String,String>> where);
}
